February 4, 2006  DINING PHILOSOPHERS WITH GLOBAL ALLOCATION 

PROGMONJavaCDefensive with Get_LR

file GLOBAL JAVA ADA

Ordinateur-de-pacha:~ claudePB$ time ./diner

*****   DINING PHILOSOPHERS WITH STICK GLOBALLY ALLOCATED 
*****   ADA SIMULATION OF JAVA MONITOR SOLUTION : RELIABLE, UNFEAR
*****   WITH CONCURRENCY RATIO INSTRUMENTATION
 5 philosophers thinking 0.010000000 and eating 0.010000000
 and (when Java monitor semantics) requesting 0.000000000
                 CONCURRENCY MEASURES DISPLAY
 NbMealsAttended =   100000
 NbPairs :  84382
 NbRequestSingletons :  15618
 NbStructuralRefusals :  69776
 NbCautiousRefusals :  0
 Total number of denials =   69776
      Total simulation time is    445.217920000
      Mean allocation time is     160.659782400
      Allocation ratio is         0.360856504
      Philosopher  0  remains hungry during  157.639650000
      Philosopher  1  remains hungry during  162.517437000
      Philosopher  2  remains hungry during  160.710223000
      Philosopher  3  remains hungry during  159.995314000
      Philosopher  4  remains hungry during  162.436288000

real    7m25.486s
user    0m16.080s
sys     0m8.030s


*********************************************************

Ordinateur-de-pacha:~ claudePB$ time ./diner*****   DINING PHILOSOPHERS WITH STICK GLOBALLY ALLOCATED 
*****   ADA SIMULATION OF JAVA MONITOR SOLUTION : RELIABLE, UNFEAR
*****   WITH CONCURRENCY RATIO INSTRUMENTATION
 5 philosophers thinking 0.010000000 and eating 0.010000000
 and (when Java monitor semantics) requesting 0.000000000
                 CONCURRENCY MEASURES DISPLAY
 NbMealsAttended =   100000
 NbPairs :  84425
 NbRequestSingletons :  15575
 NbStructuralRefusals :  69240
 NbCautiousRefusals :  0
 Total number of denials =   69240
      Total simulation time is    441.924898000
      Mean allocation time is     159.363514000
      Allocation ratio is         0.360612209
      Philosopher  0  remains hungry during  158.820821000
      Philosopher  1  remains hungry during  160.229250000
      Philosopher  2  remains hungry during  159.529095000
      Philosopher  3  remains hungry during  158.763847000
      Philosopher  4  remains hungry during  159.474557000

real    7m22.186s
user    0m15.810s
sys     0m8.020s

****************
with a requesting delay of one millisecond

Ordinateur-de-pacha:~ claudePB$ time ./diner*****   DINING PHILOSOPHERS WITH STICK GLOBALLY ALLOCATED 
*****   ADA SIMULATION OF JAVA MONITOR SOLUTION : RELIABLE, UNFEAR
*****   WITH CONCURRENCY RATIO INSTRUMENTATION
 5 philosophers thinking 0.010000000 and eating 0.010000000
 and (when Java monitor semantics) requesting 0.001000000
                 CONCURRENCY MEASURES DISPLAY
 NbMealsAttended =   100000
 NbPairs :  82682
 NbRequestSingletons :  17318
 NbStructuralRefusals :  67624
 NbCautiousRefusals :  0
 Total number of denials =   67624
      Total simulation time is    419.713641000
      Mean allocation time is     165.403044600
      Allocation ratio is         0.394085463
      Philosopher  0  remains hungry during  165.225017000
      Philosopher  1  remains hungry during  164.319420000
      Philosopher  2  remains hungry during  166.314808000
      Philosopher  3  remains hungry during  165.738836000
      Philosopher  4  remains hungry during  165.417142000

real    6m59.976s
user    0m18.010s
sys     0m10.350s
*********************
Ordinateur-de-pacha:~ claudePB$ time ./diner

*****   DINING PHILOSOPHERS WITH STICK GLOBALLY ALLOCATED 
*****   ADA SIMULATION OF JAVA MONITOR SOLUTION : RELIABLE, UNFEAR
*****   WITH CONCURRENCY RATIO INSTRUMENTATION
 5 philosophers thinking 0.010000000 and eating 0.010000000
 and (when Java monitor semantics) requesting 0.001000000
                 CONCURRENCY MEASURES DISPLAY
 NbMealsAttended =   100000
 NbPairs :  82915
 NbRequestSingletons :  17085
 NbStructuralRefusals :  67960
 NbCautiousRefusals :  0
 Total number of denials =   67960
      Total simulation time is    419.742727000
      Mean allocation time is     164.450123200
      Allocation ratio is         0.391787903
      Philosopher  0  remains hungry during  164.625605000
      Philosopher  1  remains hungry during  164.132718000
      Philosopher  2  remains hungry during  164.069669000
      Philosopher  3  remains hungry during  165.393847000
      Philosopher  4  remains hungry during  164.028777000

real    6m59.968s
user    0m18.100s
sys     0m10.130s
